#pragma once
#include <wx/ctb/serport.h>
#include "../instrument.h"

#include "EmoStateDLL.h"
#include "edk.h"
#include "edkErrorCode.h"

class Emotiv :	public Instrument
{
	
public:
	Emotiv();
	void *Entry(void);
	void StartDevice(wxString FileName,wxString FilePath,bool File);
	void StopDevice(void);
	int OpenPort(const char *PortCom, const char *OpenVal2, const char *OpenVal3);
public:
	~Emotiv(void);
	bool demo;
	EE_DataChannel_t targetChannelList[22];
	EmoEngineEventHandle eEvent;
	EmoStateHandle eState;
	unsigned int userID;
	unsigned short composerPort;
	float secs;
	unsigned int datarate;
	bool readytocollect;
	int option;
	int state;
	
	DataHandle hData;
	
private:

	void ChannelsInit(void);
	bool algo;
	int Classification[4];
};

